package cn.edu.sgu.www.mhxysy.entity.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class User implements Serializable {
	private static final long serialVersionUID = 18L;

	@ApiModelProperty(value = "ID")
	private String id;

	/**
	 * 姓名
	 */
	@ApiModelProperty(value = "姓名")
	private String name;

	/**
	 * 性别
	 */
	@ApiModelProperty(value = "性别")
	private Integer gender;

	/**
	 * 用户名
	 */
	@ApiModelProperty(value = "用户名")
	private String username;

	/**
	 * 密码
	 */
	@ApiModelProperty(value = "密码")
	private String password;

	/**
	 * 手机号
	 */
	@ApiModelProperty(value = "手机号")
	private String phone;

	/**
	 * 应用ID
	 */
	@ApiModelProperty(value = "应用ID", required = true)
	private Integer serviceId;

	/**
	 * 锁定状态，锁定的账号将无法登录系统。
	 * 0-未锁定；1-已锁定
	 */
	@ApiModelProperty(value = "锁定状态")
	private Integer lockStatus;

	/**
	 * 最后一次登录时间
	 */
	@ApiModelProperty(value = "最后一次登录时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime lastLoginTime;
}